package Day11.IO;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Lian05 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("H:\\itheima\\aa\\a.txt");
        FileOutputStream fos = new FileOutputStream("jinjie\\a.txt");
        byte[] bytes = new byte[1024];
        int len;
        while ((len=fis.read(bytes))!=-1) {
            fos.write(bytes, 0, len);
        }
        fis.close();;
        fos.close();
    }
}
